package com.shigen.demo.entity.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotEmpty;
import lombok.Data;
import lombok.experimental.Accessors;


public class FileFolderReq {

  @Data
  @Accessors(chain = true)
  @ApiModel(value = "创建文件夹的请求体")
  public static class CreateFolderReq {

    @ApiModelProperty(value = "父文件id")
    @NotEmpty(message = "父文件夹不能为空")
    private String parentId;

    @ApiModelProperty(value = "文件夹名称")
    @NotEmpty(message = "文件夹名称不能为空")
    private String name;

    @ApiModelProperty(value = "文件备注")
    private String note;

    @ApiModelProperty(value = "是否为公共文件")
    private Boolean isPublic;
  }

  @Data
  @ApiModel(value = "上传文件的请求体")
  public static class MoveReq {

    @ApiModelProperty(value = "父文件夹id")
    @NotEmpty(message = "父文件id不能为空")
    private String parentId;

    @ApiModelProperty(value = "文件唯一id")
    @NotEmpty(message = "文件唯一id不能为空")
    private String unionId;
  }
}
